package com.heima.clients;


import com.heima.model.admin.dto.SensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.entity.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-wemedia")
public interface WemediaFeignClient {
    /**
     * 调用自媒体微服务实现敏感词列表查询
     *
     * @param dto
     * @return
     */
    @PostMapping(path = "/api/v1/wmSensitive/list")
    public ResponseResult list(@RequestBody SensitiveDto dto);


    /**
     * 新增自媒体用户
     * @param wmUser
     * @return
     */
    @PostMapping("/api/v1/user/save")
    ResponseResult saveWmUser(@RequestBody WmUser wmUser);
}
